package com.ruoyi.system.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.PreAuthorize;
import com.ruoyi.system.service.TbSubwayStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/housemanager/station")
public class TbSubwayStationController {

    @Autowired
    private TbSubwayStationService tbSubwayStationService;

    @PreAuthorize(hasPermi = "house:housemanager:station:query")
    @PostMapping
    public AjaxResult selectTbSubwayStation(@RequestBody List<Integer> ids) {
        if (ids != null) {
            return AjaxResult.success(tbSubwayStationService.selectTbSubwayStationById(ids));
        }
        return AjaxResult.success();
    }

}
